class RoleSection {
  late List<Role> data;
  late String title;
}
class RoleEntity {
  late int code;
  late List<Role> data;
  late String message;

  static RoleEntity fromMap(Map<String, dynamic> map) {
    RoleEntity completionEntityBean = RoleEntity();
    completionEntityBean.code = map['code'];
    completionEntityBean.data = []..addAll(
      (map['data'] as List ?? []).map((o) => Role.fromMap(o))
    );
    completionEntityBean.message = map['message'];
    return completionEntityBean;
  }

  Map toJson() => {
    "code": code,
    "data": data,
    "message": message,
  };
}



class Role {
  late String answer;
  late String bid;
  late String category;
  late String cover;
  late int createTime;
  late String example;
  late String hintTitle;
  late int id;
  late String jumpTitle;
  late int number;
  late String prompt;
  late String subTitle;
  late String title;
  late int type;
  late String users;

  static Role fromMap(Map<String, dynamic> map) {
    Role dataBean = Role();
    dataBean.answer = map['answer'];
    dataBean.bid = map['bid'];
    dataBean.category = map['category'];
    dataBean.cover = map['cover'];
    dataBean.createTime = map['createTime'];
    dataBean.example = map['example'];
    dataBean.hintTitle = map['hintTitle'];
    dataBean.id = map['id'];
    dataBean.jumpTitle = map['jumpTitle'];
    dataBean.number = map['number'];
    dataBean.prompt = map['prompt'];
    dataBean.subTitle = map['subTitle'];
    dataBean.title = map['title'];
    dataBean.type = map['type'];
    dataBean.users = map['users'];
    return dataBean;
  }

  Map toJson() => {
    "answer": answer,
    "bid": bid,
    "category": category,
    "cover": cover,
    "createTime": createTime,
    "example": example,
    "hintTitle": hintTitle,
    "id": id,
    "jumpTitle": jumpTitle,
    "number": number,
    "prompt": prompt,
    "subTitle": subTitle,
    "title": title,
    "type": type,
    "users": users,
  };
}